#pragma once
#include<iostream>
using namespace std;
struct List
{
	int num;
	List* next;
};
void addlist(List** head, int x);
void midlist(List** head);

